import * as ActionTypes from '../constants/ActionTypes'

export default function counter(state = 0, action) {
    switch (action.type){
        case ActionTypes.DICTIONARY_INCREMENT:
            return state + 1
        case ActionTypes.DICTIONARY_DECREMENT:
            return state - 1
        default:
            return state
    }
}
